//接入服务器接口地址根目录
//本地开发，就把ENV 设置成0
//测试环境，就把ENV 设置成1
//生产环境，就把ENV 设置成2

var BASE_API = ''
var SHOP_API = ''
var SSO_API = ''
var SEARCH_API = ''
var UPLOAD_API = ''
const ENV = 2
switch (ENV) {
  case 0:
    BASE_API = 'localhost:4000'
    SHOP_API = 'http://192.168.1.52:8086/jixiang-web-shop'
    SSO_API = 'http://192.168.1.52:8086/jixiang-web-sso'
    SEARCH_API = 'http://test.sportjx.com/jixiang-web-search'
    UPLOAD_API = 'http://test.sportjx.com/jixiang-web-source'
    break
  case 1:
    BASE_API = 'http://test.sportjx.com'
    SHOP_API = 'http://test.sportjx.com/jixiang-web-shop'
    SSO_API = 'http://test.sportjx.com/jixiang-web-sso'
    SEARCH_API = 'http://test.sportjx.com/jixiang-web-search'
    UPLOAD_API = 'http://source.sportjx.com:8088/jixiang-web-source'
    break
  case 2:
    BASE_API = 'http://www.sportjx.com'
    SHOP_API = 'http://www.sportjx.com/jixiang-web-shop'
    SSO_API = 'http://www.sportjx.com/jixiang-web-sso'
    SEARCH_API = 'http://img.sportjx.com/jixiang-web-search'
    UPLOAD_API = 'http://img.sportjx.com/jixiang-web-source'
}

export {
  BASE_API,
  SHOP_API,
  SSO_API,
  SEARCH_API,
  UPLOAD_API
}